home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / InteractiveBook_Files / Examples / Chapter7 / Clustering / 1 add new stuff.nsm next >
Encoding:
Text File  |  2002-03-08  |  2.1 KB  |  55 lines

  1. //
  2. // 
  3. //
  4. subtitleTextBox. setText ("")
  5. mainTextBox. setText ("")
  6. //
  7. // Record New Stuff Here
  8. //
  9. dllPath=macro.pathFromMacro(".\voronoi.dll");
  10. activeBreadboard. maximize (  )
  11. activeBreadboard. stampOnAndMove ( "DLLPostprocessor" , "outputChart" )
  12. activeBreadboard. stampOnAndMove ( "ImageViewer" , "dLLPostprocessor" )
  13. imageViewer. setActiveAccessPoint ( "Stacked Access" )
  14. activeBreadboard. select ( "imageViewer" , FALSE )
  15. imageViewer. setMinNormValue ( 0.000000 )
  16. imageViewer. setActiveAccessPoint ( "Postprocessor Output" )
  17. imageViewer. setName ( "voronoiViewer" )
  18. voronoiViewer. setAccessDataSet ( "Cross Validation" )
  19. voronoiViewer. setFixWindowTitle ( TRUE )
  20. voronoiViewer. setWindowTitle ( "Voronoi Diagram" )
  21. activeBreadboard. select ( "dLLPostprocessor" , FALSE )
  22. dLLPostprocessor. setAccessDataSet ( "Cross Validation" )
  23. dLLPostprocessor. setDLLName ( "voronoi" , dllPath)
  24. dLLPostprocessor. activateDLL ( TRUE )
  25. dLLPostprocessor. setDLLParameter ( 2 , 1 , "25" )
  26. activeBreadboard. select ( "control" , FALSE )
  27. activeBreadboard. stampOnAndMove ( "DLLInput" , "inputFile" )
  28. dLLInput. setAccessDataSet ( "Cross Validation" )
  29. dLLInput. setDLLName ( "voronoi" ,dllPath )
  30. dLLInput. activateDLL ( TRUE )
  31. activeBreadboard. maximize (  )
  32. activeBreadboard. select ( "dLLInput" , FALSE )
  33. dLLInput. setDLLParameter ( 2 , 1 , "-.6" )
  34. dLLInput. setDLLParameter ( 3 , 1 , "-.6" )
  35. dLLInput. setDLLParameter ( 2 , 2 , ".6" )
  36. dLLInput. setDLLParameter ( 3 , 2 , ".6" )
  37. distanceChart. closeEngineWindow (  )
  38. outputChart. closeEngineWindow (  )
  39. activeBreadboard. select ( "voronoiViewer" , FALSE )
  40. voronoiViewer. openEngineWindow (  )
  41. voronoiViewer. tileWindow(2,3,3,3)
  42. control. setXValDataSet ( "Cross Validation" )
  43.  
  44. //
  45. // fill in text
  46. //
  47. TextBoxPath = macro. pathFromMacro("textbox.txt")
  48. NextMacroPath = macro. pathFromMacro ( "2 add even more.nsm" )
  49. nextButton. setMacroPath ( NextMacroPath )
  50. CancelMacroPath= macro.pathFromMacro("..\minimize.nsm")
  51. cancelButton. setMacroPath ( CancelMacroPath)
  52. SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, 0)
  53. MainIndex = mainTextBox. setTextFromFile (TextBoxPath, 0)
  54.  
  55.